package com.woniu113.junk.user.client;

import com.woniu113.junk.commons.model.Result;
import com.woniu113.junk.user.client.dto.StationInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "junk-site",path = "/site")
public interface SiteClient {
    /**
     * 根据站点id查询站点信息
     */
    @GetMapping("/stationInfo/findStationInfoById")
    public Result<StationInfo> findStationInfoById(@RequestParam("stationId") Integer stationId);
}
